package beveragecase.condiment;

import beveragecase.BaseBeverage;

/**
 * description:
 *
 * @author yuanmenglv on 2019/11/27
 */
public class Whip extends BaseCondimentDecorator {
    private BaseBeverage beverage;

    public Whip(BaseBeverage beverage){
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription() + ", Whip";
    }

    @Override
    public double cost() {
        return 0.16 + beverage.cost();
    }
}
